package com.baizhi.feign.fallback;

import com.baizhi.feign.ClazzFeign;
import com.baizhi.po.ClazzsPO;
import org.springframework.stereotype.Component;

@Component
public class ClazzFallBack implements ClazzFeign {
    @Override
    public ClazzsPO queryById(Long id) {
        ClazzsPO clazzsPO = new ClazzsPO();
        clazzsPO.setId(id);
        clazzsPO.setName("服务暂时不可用");
        return clazzsPO;
    }
}
